public class Application {
	public static void main (String args[]){
		Pillar1 pillar;
		Geometry bottom = null;
		pillar = new Pillar(bottom,100);
		System.out.println("体积"+pillar.getVolume());
		bottom=new Rectangle(12,22);
		pillara=new Pillar (bottom,58);
		System.out.println("体积"+pillar.getVolume());
		bottom =new Circle1(10);
		pillar=new Pillar1(bottom,58);
		System.out.println("体积"+pillar.getVolume());
	}
}
